package com.achen.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * @author achen
 * @create 2020-04-30 22:55
 */
@Document(indexName = "layui",type = "dept")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Dept implements Serializable {
    @Id
    private String id;
    @Field
    private String name;
    @Field
    private String tel;
    @Field
    private String area;


}
